<%@ page language="java" contentType="text/html; charset=UTF-8" import="org.springframework.ui.ModelMap" import="java.util.*,com.device.operating.entity.*"
    pageEncoding="UTF-8"%>

<title>上下联信息编辑</title>
<!-- 
<link rel="stylesheet" type="text/css" href="/xasj/easyui/themes/default/easyui.css">
<link rel="stylesheet" type="text/css" href="/xasj/easyui/themes/icon.css">
<link rel="stylesheet" type="text/css" href="/xasj/easyui/themes/color.css">
<script type="text/javascript" src="/xasj/easyui/jquery.min.js"></script>
<script type="text/javascript" src="/xasj/easyui/jquery.easyui.min.js"></script>
<script type="text/javascript" src="/xasj/js/component/dvparent.js"></script>	 -->
	<%
	String dvId="0",parentId="",dvip="",dvname="",dvbelong="",parentbelong="";
	if(request.getAttribute("parentId")!=null)
	parentId=request.getAttribute("parentId").toString();
	if(request.getAttribute("dvId")!=null)
	dvId=request.getAttribute("dvId").toString();
	if(request.getAttribute("dvbelong")!=null){
		dvbelong=request.getAttribute("dvbelong").toString();
	}
	if(request.getAttribute("dvip")!=null&&request.getAttribute("dvname")!=null){
		dvip=request.getAttribute("dvip").toString();
		dvname=request.getAttribute("dvname").toString();
	}
	List<Devres> dlist=(List<Devres>)request.getAttribute("dlist");
	%>
	<table id="dg"  style="width:100%;height:auto" >
	</table>
	<input style="display:none" id="dvId" value="<%=dvId%>"/>
 	<input style="display:none" id="parentId" value="<%=parentId%>"/>	 
 	<input style="display:none" id="dvname" value="<%=dvname%>"/>
 	<input style="display:none" id="dvip" value="<%=dvip%>"/>
 	<input style="display:none" id="comdvbelong" value="<%=dvbelong%>"/>
 	<input style="display:none" id="parentbelong" value="<%=parentbelong%>"/>
 	<!-- 
 	<input style="display:none"id="parentname" value="<%=request.getAttribute("parentname")%>"/>
 	<input style="display:none" id="parentip" value="<%=request.getAttribute("parentip")%>"/>
 	<input style="display:none" id="parentbelong" value="<%=request.getAttribute("parentbelong")%>"/>
 	-->
	<div id="tb" style="padding:5px;height:auto;width:100%">
		<div style="margin-bottom:5px">
			<a id='b1' href="#">添加</a>
			<a id='b2' href="#">删除</a>
			<a id='b3' href="#">确定</a>
			<a id='b4' href="#">取消修改</a>
		</div>
		<div>
			<input id="ssd" style="width:200px;height:23px;">
			<div  id="mm" style="width:20px;display:none"> 
			<div data-options="name:'0',iconCls:'icon-ok'">请选择</div> 
			<%for(Devres dv:dlist){%>
			<div data-options="name:'<%=dv.getDvbelong()%>',iconCls:'icon-ok'"><%=dv.getDevresname()%></div> 
			<%}%> 
			</div> 			
			请选择设备： 
			<select id="mresult" style="width:180px">
			</select>
			<a id="addnew" ></a>
			<input id="ceshi1" type="button"/>
		</div>
	</div>